<?php
/**
 * Elgg Message board index page
 *
 * @package MessageBoard
 */

$annotation_id = get_input('annotation_id');
$annotation = elgg_get_annotation_from_id($annotation_id);
$message_content = $annotation->value;




$content .= elgg_view_form('messageboard/edit', 
	array('name' => 'elgg-messageboard-edit'), 
	array(
		'annotation_id' => $annotation_id,
		'message_content' => $message_content
	));


$type = get_input('type');
if ($type=='comments') $title = 'Comments';

$vars = array(
	'filter' => false,
	'content' => $content,
	'title' => $title,
	'reverse_order_by' => true
);

$body = elgg_view_layout('content', $vars);

echo elgg_view_page($title, $body);